package com.project.service.impl;

import com.project.bean.SalesStatisticsBean;
import com.project.mapper.ISalesStatisticsMapper;
import com.project.service.ISalesStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.List;

@Service
@Transactional
public class ISalesStatisticsServiceImpl implements ISalesStatisticsService {
@Autowired
private ISalesStatisticsMapper mapper;
    @Override
    public List<SalesStatisticsBean> findByType(LocalDate startDate, LocalDate endDate) {
        return mapper.findByType(startDate,endDate);
    }

    @Override
    public List<SalesStatisticsBean> findByGoods(LocalDate startDate, LocalDate endDate) {
        return mapper.findByGoods(startDate,endDate);
    }
}
